#

| Chapter 2 UNIX Commands |

## df

    df [options] [name]

Report the number of free disk blocks and inodes available on all mounted file systems or on the given `name`. (Unmounted file systems are checked with -F.) `name` can be a device name (e.g., /dev/dsk/0s9), the directory name of a mounting point (e.g., /usr), a directory name, or a remote resource name (e.g., an RFS/NFS resource). Besides the options listed, there are additional options specific to different file system types or df modules.

### Options

-b

  Print only the number of free kilobytes.

-e

  Print only the number of free files.

-f

  Report free blocks but not free inodes (SVR3 only).

-F `type`

  Report on an unmounted file system specified by `type`. Available `types` can be seen in the file /etc/vfstab.

-g

  Print the whole statvfs structure (overriding other print options).

-k

  Print allocation in kilobytes (typically used without other options).

-l

  Report only on local file systems.

-n

  Print only the file system `type` name; with no other arguments, -n lists the types for all mounted file systems.

-o `suboptions`

  Supply a comma-separated list of `type`-specific `suboptions`.

-t

  Report total allocated space as well as free space.

-V

  Echo command line but do not execute command.

Reference: deroff |  | Reference: diff